package at.fhooe.mc.data.control;

import at.fhooe.mc.data.ControlMode;
import at.fhooe.mc.data.DirectionType;

/**
 * class for the control data
 *
 * @author Thomas Wirth
 *
 */
public class ElevatorControlData
{

	/**
	 * default value
	 */
	public static final int NO_TARGET = -1;
	/**
	 * default value
	 */
	public static final ControlMode DEFAULT_MODE = ControlMode.AUTOMATIC;

	private int newTarget;
	private ControlMode mode;
	private DirectionType newDirection;

	public ElevatorControlData()
	{
		newTarget = NO_TARGET;
		mode = DEFAULT_MODE;
	}

	public int getNewTarget()
	{
		return newTarget;
	}

	public void setNewTarget(int newTarget)
	{
		this.newTarget = newTarget;
	}

	public ControlMode getMode()
	{
		return mode;
	}

	public void setMode(ControlMode mode)
	{
		this.mode = mode;
	}

	/**
	 * @return the newDirection
	 */
	public DirectionType getNewDirection()
	{
		return newDirection;
	}

	/**
	 * @param newDirection the newDirection to set
	 */
	public void setNewDirection(DirectionType newDirection)
	{
		this.newDirection = newDirection;
	}

}
